<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
   <label>所有订单：</label><br/>
    <table border="1">
        <thead>
        <tr>
            <th>订单编号</th>
            <th>订单信息</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <tr v-for="(item,i) in tableData">
            <td>{{item.orderNum}}</td>
            <td>{{item.orderName}}</td>
            <td><a v-bind:href="['Rate.html?orderNum='+item.orderNum]">评论</a></td>
        </tr>
        </tbody>


    </table>
</div>
<script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script>

    new Vue({
        el: '#app',
        data: {
            tableData:[]
        },
        mounted:function(){
            this.find();
        },
        methods: {
            find: function () {
                axios.get("http://127.0.0.1/apx/findAllOrder").then(
                    r => {
                        this.tableData = r.data;
                    }
                )
            }
        }
    });
</script>

</body>
</html>